package com.dms.modules.merchant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dms.modules.merchant.entity.MerchantCommentTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MerchantCommentTemplateMapper extends BaseMapper<MerchantCommentTemplate> {
    
    @Select("SELECT * FROM merchant_comment_template WHERE merchant_id = #{merchantId} ORDER BY create_time DESC")
    List<MerchantCommentTemplate> selectByMerchantId(Long merchantId);
} 